/*
 * ChatMessage.java
 *
 * Created on 9 maart 2008, 14:58
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package racer.client.data;
import racer.client.data.interfaces.IChatMessage;


/**
 *
 * @author Lieven
 */
public class ChatMessage extends NetworkMessage implements IChatMessage {
    public int toID;
    public String text;
    /** Creates a new instance of ChatMessage */
public ChatMessage(int id) {
        super(id);
        text="";
}
public void setToID(int toID){
    this.toID=toID;
    
}    

public void setText(String text){
    this.text=text;
    
}    
public String getFormedMessage(int toID,String text){
    return ":=:2:=:fromID="+fromID+";toID="+toID+";text="+text;
       
}    
}
